Auto merge of #2763 - mbrubeck:native-dirs, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 7 Jun 2016 08:05:44 +0000 (01:05 -0700)
committerbors <bors@rust-lang.org>
Tue, 7 Jun 2016 08:05:44 +0000 (01:05 -0700)
commit3e70312a2a4ebedace131fc63bb8f27463c5db28
treee1048fa507dba748ad71ec5de9f751750ad48fa7
parent510920be8aac6e83c3fba7ec66db22fcb63213aa
parent0cf0ce780c18822ddb097fd8efbe1bbba12b4a7f
Auto merge of #2763 - mbrubeck:native-dirs, r=alexcrichton

Correctly record multiple native dirs per package

This fixes a bug when a package's build script outputs multiple library search
paths.  Because Compilation::native_dirs is a `HashMap<PackageId, PathBuf>` it
can only store one path per package.  Currently if there are multiple paths,
all but the last will be inserted and then overwritten.

The key from this map is never used anyway, so this fixes the bug by changing
it from a HashMap to a HashSet.